home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15790 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  59 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!marnold
  3. From: marnold@netcom.com (Matt Arnold)
  4. Subject: Re: BC++5.0 Program doesn't compile (see text)
  5. Message-ID: <marnoldDpHBG2.7vJ@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <31643314.794BDF32@nac.telco.com> <craigaDpEqDq.1DI@netcom.com> <marnoldDpFnn3.9FE@netcom.com> <31673A9B.AA@tdl.com>
  8. Date: Sun, 7 Apr 1996 06:31:14 GMT
  9. Sender: marnold@netcom19.netcom.com
  10.  
  11. Martin Moore <moore@tdl.com> writes:
  12.  
  13. >Matt Arnold wrote:
  14. >> 
  15. >> craiga@netcom.com (Craig Arnush) writes:
  16. >> 
  17. >> >Martin Moore <moore@nac.telco.com> writes:
  18. >> >>
  19. >> >>I cannot get the following program to compile...can anyone else?
  20. >> >>
  21. >> >>#include "vector.h"
  22. >> >>using namespace std;
  23. >> >>vector<long> test;
  24. [snip]
  25. >The error message from Borland C++ 5.0 (with patch BC50P1 installed) is 
  26. >"Access Violation: Address 0x blah blah blah" (my "blah"'s since the 
  27. >address is irrelevant). This is a compile time error, not a run time 
  28. >error, that is, it appears where warnings and true compile errors 
  29. >appear. 
  30. >This is really not a question addressing whether the program is 
  31. >syntactically correct. It is a question to anyone who has the same 
  32. >compiler and patch applied. Sorry for not making that clear. 
  33.  
  34. >If you have that compiler (and possibly the patch), does it compile that 
  35. >snippet? Mine doesn't...and I wonder why, though I suspect the compiler 
  36. >is broken in this instance.
  37.  
  38. Hmm, don't have 5.0 yet.  But, for reference, Borland C++ 4.52 has no
  39. trouble with the following...
  40.  
  41. #define __MINMAX_DEFINED
  42. #include "vector.h"
  43. vector<long> test;
  44.  
  45. ...using the HP version of STL (obivously, the namespace stuff was
  46. removed cause 4.52 doesn't support it).
  47.  
  48. If the access violations you're getting are not due to a corrupted .IDE 
  49. file or something like that, you should report this problem to Borland.
  50.  
  51. Regards,
  52. -------------------------------------------------------------------------
  53. Matt Arnold                       |        | ||| | |||| |  | | || ||
  54. marnold@netcom.com                |        | ||| | |||| |  | | || ||
  55. Boston, MA                        |      0 | ||| | |||| |  | | || ||
  56. 617.389.7384 (h) 617.576.2760 (w) |        | ||| | |||| |  | | || ||
  57. C++, MIDI, Win32/95 developer     |        | ||| 4 3 1   0 8 3 || ||
  58. -------------------------------------------------------------------------
  59.